import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router"

const routes: Array<RouteRecordRaw> = [
    {
        path:'/',
        name:'Register',
        component:()=>import('../View/Users/Register.vue')//注册
    },
    {
        path:'/Login',
        name:'Login',
        component:()=>import('../View/Users/Login.vue')//登录
    },
    {
        path:'/index',
        name:'index',
        component:()=>import('../View/index.vue')//主页面
    },
    {
        path:'/UserInfo/:U_id',
        name:'UserInfo',
        component:()=>import('../View/Users/UserInfo.vue')//用户详细信息注册
    },
    {
        path:'/AddInvestInfo',
        name:'AddInvestInfo',
        component:()=>import('../View/Invest/AddInvestInfo.vue')//添加投资信息(管理员)
    },
    {
        path:'/ShowInvestInfo',
        name:'ShowInvestInfo',
        component:()=>import('../View/Invest/ShowInvestInfo.vue')//投资信息列表子页面(管理员)
    },
    {
        path:'/EditInvestInfo/:Id',
        name:'EditInvestInfo',
        component:()=>import('../View/Invest/EditInvestInfo.vue')//投资信息修改(管理员)
    },
    {
        path:'/AddFinan',
        name:'AddFinan',
        component:()=>import('../View/Finan/AddFinan.vue')//理财信息添加(管理员)
    },
    {
        path:'/InvestInfoContent',
        name:'InvestInfoContent',
        component:()=>import('../View/Invest/InvestInfoContent.vue')//投资信息列表父页面
    },
    {
        path:'/ShowFinan',
        name:'ShowFinan',
        component:()=>import('../View/Finan/ShowFinan.vue')//理财信息列表(管理员)
    },
    {
        path:'/EditFinan/:Id',
        name:'EditFinan',
        component:()=>import('../View/Finan/EditFinan.vue')//理财信息修改(管理员)
    },
    {
        path:'/BorrowAll',
        name:'BorrowAll',
        component:()=>import('../View/Borrow/BorrowAll.vue')//添加借款信息(管理员)父页面
    },
    {
        path:'/AddBorrow',
        name:'AddBorrow',
        component:()=>import('../View/Borrow/AddBorrow.vue')//添加借款信息(管理员)
    },
    {
        path:'/ShowBorrow',
        name:'ShowBorrow',
        component:()=>import('../View/Borrow/ShowBorrow.vue')//显示借款信息(管理员)
    },
    {
        path:'/EditBorrow/:Id',
        name:'EditBorrow',
        component:()=>import('../View/Borrow/EditBorrow.vue')//修改借款信息(管理员)
    },

    {
        path:'/ShowUserInvestInfo',
        name:'ShowUserInvestInfo',
        component:()=>import('../View/Invest/ShowUserInvestInfo.vue')//投资信息列表子页面(用户)
    },
    {
        path:'/UserInvestAdd/:Id',
        name:'UserInvestAdd',
        component:()=>import('../View/Invest/UserInvestAdd.vue')//用户投资添加页面(用户)
    },
    {
        path:'/ShowAllUserInvest',
        name:'ShowAllUserInvest',
        component:()=>import('../View/Invest/ShowAllUserInvest.vue')//用户投资项目列表信息(管理员)
    },
    {
        path:'/UserInvestail/:Id',
        name:'UserInvestail',
        component:()=>import('../View/Invest/UserInvestail.vue')//用户投资添加页面(管理员)
    },
    {
        path:'/FinanAll',
        name:'FinanAll',
        component:()=>import('../View/Finan/FinanAll.vue')//理财信息显示页面父页面()
    },
    {
        path:'/UserFinanShow',
        name:'UserFinanShow',
        component:()=>import('../View/Finan/UserFinanShow.vue')//理财项目列表(用户)
    },
    {
        path:'/UserFinanAdd/:Id',
        name:'UserFinanAdd',
        component:()=>import('../View/Finan/UserFinanAdd.vue')//理财项目添加(用户)
    },
    {
        path:'/AllUserFinanShow',
        name:'AllUserFinanShow',
        component:()=>import('../View/Finan/AllUserFinanShow.vue')//用户理财项目列表(管理员)
    },
    {
        path:'/UserFinanAils/:Id',
        name:'UserFinanAils',
        component:()=>import('../View/Finan/UserFinanAils.vue')//用户理财项目明细(管理员)
    },
    {
        path:'/UserBorrShow',
        name:'UserBorrShow',
        component:()=>import('../View/Borrow/UserBorrShow.vue')//用户借款项目列表(用户)
    },
    {
        path:'/UserBorrowAdd/:Id',
        name:'UserBorrowAdd',
        component:()=>import('../View/Borrow/UserBorrowAdd.vue')//用户借款项目添加(用户)
    },
    {
        path:'/UserBorrowAll',
        name:'UserBorrowAll',
        component:()=>import('../View/Borrow/UserBorrowAll.vue')//用户借款项目(管理员)
    },
    {
        path:'/UserBorrowAils/:Id',
        name:'UserBorrowAils',
        component:()=>import('../View/Borrow/UserBorrowAils.vue')//用户借款项目明细(管理员)
    },
    {
        path:'/UserInvestRedeem',
        name:'UserInvestRedeem',
        component:()=>import('../View/Invest/UserInvestRedeem.vue')//用户投资赎回列表(用户)
    },
    
    {
        path:'/AddUserInvestRedeem/:Id',
        name:'AddUserInvestRedeem',
        component:()=>import('../View/Invest/AddUserInvestRedeem.vue')//用户投资赎回添加(用户)
    },


]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router